package com.example.mybatis_demo.mapper;


import com.example.mybatis_demo.entity.vo.ArticleInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {

    // 查询文章详情
    ArticleInfoVO getDetail(@Param("id")Integer id);

    //查询某个用户所有的文章
    List<ArticleInfoVO> getListByUid(@Param("uid")Integer uid);

    //根据文章批量删除文章
    Integer deleteByIDList(@Param("list")List<Integer> list);
}
